var util=require('../../utils/util.js')
Page({
  data: {
    list:[],
    imghost: wx.getStorageSync("imghost"),
  },
  onLoad:function(){
    this.getMyCollect();
  },
  getMyCollect:function(){
    var that=this;
    var url = util.url.collect_list;
    util.fetchGet(
      url,
      function(ret){
        that.setData({
          list:ret.data
        })
      }
    )
  },
  goShop: function (e) {
    var id = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: '/pages/index/index?id=' + id,
    })
  },
  
})